package com.liruo.test.spring.component.likestarter;

import com.liruo.test.spring.component.likestarter.bean.LikeStarterBean;
import com.liruo.test.spring.component.likestarter.bean.LikeStarterInnerBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:liruo
 * @Date:2022-11-20-23:12:31
 * @Desc
 */
@ComponentScan(
        {"com.liruo.test.spring.component.likestarter.component",
                "com.liruo.test.spring.component.likestarter.mainotherconfig"}
)
@Configuration
public class LikeStarterConfiguration {
    @Bean
    public LikeStarterBean likeStarterBean(){
        return new LikeStarterBean();
    }

    @Configuration
    @ComponentScan("com.liruo.test.spring.component.likestarter.inner")
    class LikeStarterInnerConfiguration{
        @Bean
        public LikeStarterInnerBean likeStarterInnerBean(){
            return new LikeStarterInnerBean();
        }

    }
}
